< previous page page_625 next page >

Page 625
this information if a user calls with a bug. Tech support can ask the user what the form name is in the lower-right side of the screen when the bug occurs. This uniquely identifies the form where the bug is.
The Style Property of the Status Bar Panel Object
You can use many styles of panels on a status bar control. Table 30.6 lists the different style values and provides a description of each.
Table 30.6 Style Property Values of the Panel Object.
StyleDescription
0 - sbrTextDisplays text and/or a bitmap in the panel.
1 - sbrCapsThe letters CAPS will be displayed in bold font in the panel when the Caps Lock key is enabled. The letters will be dimmed in the panel when the key is disabled.
2 - sbrNumThe letters NUM will be displayed in bold font in the panel when the Num Lock key is enabled. The letters will be dimmed in the panel when the key is disabled.
3 - sbrInsThe letters INS will be displayed in bold font in the panel when the Insert key is enabled. The letters will be dimmed in the panel when the key is disabled.
4 - sbrScrlThe letters SCRL will be displayed in bold font in the panel when the Scroll Lock key is enabled. The letters will be dimmed in the panel when the key is disabled.
5 - sbrTimeDisplays the current time in the panel in the system time format setting.
6 - sbrDateDisplays the current date in the panel in the system date format setting.
7 - sbrKanaThe letters KANA will be displayed in bold font in the panel when the Scroll Lock key is enabled. The letters will be dimmed in the panel when the key is disabled.

Setting Panel Values at Runtime
At runtime, you need to fill in with text any Panel object you define by setting the Style property to 1-sbrText. Heres some sample code of how you write to the Text property of each individual Panel object in the Panels collection:

 
< previous page page_625 next page >

If you like this book, buy it!